<?php

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
  define('HTTP_SERVER', 'http://'.HOST_DOMAIN_NAME); // eg, http://localhost - should not be empty for productive servers
//  define('HTTP_CATALOG_SERVER', 'http://server1:100');
//  define('HTTPS_CATALOG_SERVER', '');
//  define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module



//Local and Server
//*======================================  
  define('DIR_FS_DOCUMENT_ROOT', ROOT_FS.'uploads/'); // where the pages are located on the server
  define('DIR_FS_HTML_ROOT', ROOT_FS.'htmls_layout/'); // where the pages are located on the server
  define('DIR_FS_IMAGES_ROOT', ROOT_FS.'images_layout/'); // where the pages are located on the server  
  
  define('DIR_WS_ADMIN', ROOT_WS.'admin/php/'); // absolute path required
  define('DIR_FS_ADMIN', ROOT_FS.'admin/php/'); // absolute pate required
  define('DIR_WS_CATALOG', ROOT_WS.'upload/'); // absolute path required
  define('DIR_FS_CATALOG', ROOT_FS.'upload/'); // absolute path required
//*/=====================================

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  
  define('DIR_WS_INCLUDES', '../library/php/includes/');
  define('DIR_WS_INCLUDES_ADMIN', '../../library/php/includes/');
  
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_BOXES_ADMIN', DIR_WS_INCLUDES_ADMIN . 'boxes/');

  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_FUNCTIONS_ADMIN', DIR_WS_INCLUDES_ADMIN . 'functions/');  

  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_CLASSES_ADMIN', DIR_WS_INCLUDES_ADMIN . 'classes/');  

  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_LANGUAGES_ADMIN', DIR_WS_INCLUDES_ADMIN . 'languages/');
    
  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');



// define our database connection
  
  define('DB_SERVER', $DBHOST); // eg, localhost - should not be empty for productive servers
  define('DB_SERVER_USERNAME', $DBUSER);
  define('DB_SERVER_PASSWORD', $DBPASSWORD);
  define('DB_DATABASE', $DBNAME);  
  
  define('USE_PCONNECT', 'false'); // use persisstent connections?
  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>